package wsi.script;

import org.rygh.core.face.IHasName;
import org.rygh.semantic.model.rdf.Entity;
import org.rygh.semantic.model.rdf.Predicate;
import org.rygh.semantic.sparql.SparQL;

public class QueryTuple implements IHasName {

	private final String name;
	private SparQL query;
	private Entity type;
	private Predicate namePredicate;
	private Predicate linkPredicate;
	private int maxDegree;

	public QueryTuple(String name) {
		this.name = name;
	}

	public Predicate getLinkPredicate() {
		return linkPredicate;
	}

	public int getMaxDegree() {
		return maxDegree;
	}

	@Override
	public String getName() {
		return name;
	}

	public Predicate getNamePredicate() {
		return namePredicate;
	}

	public SparQL getQuery() {
		return query;
	}

	public Entity getType() {
		return type;
	}

	public void setLinkPredicate(Predicate linkPredicate) {
		this.linkPredicate = linkPredicate;
	}

	public void setMaxDegree(int maxDegree) {
		this.maxDegree = maxDegree;
	}

	public void setNamePredicate(Predicate namePredicate) {
		this.namePredicate = namePredicate;
	}

	public void setQuery(SparQL query) {
		this.query = query;
	}

	public void setType(Entity type) {
		this.type = type;
	}
}
